export interface PlayDetailParams {
  vodId: string | number;
  proxyId: string | number;
}

export interface PlayDetailResult {
  vodId: number;
  vodName: string;
  vodActor: string;
  vodDirector: string;
  vodContent: string;
  vodPlayUrl: string[];
  // ... 其他字段
}

export async function getPlayDetail(params: PlayDetailParams): Promise<{ code: number; msg: string | null; data: PlayDetailResult }> {
  const res = await fetch('/api/search/detail', {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify(params),
  });
  return res.json();
} 